const dialog = {
  toast(message, callback, mask = false) {
    uni.showToast({
      title: message,
      mask,
      duration: 1500,
      icon: 'none',
      success() {
        if (Object.isTypeOf(callback, 'function')) {
          setTimeout(() => {
            callback();
          }, 1500);
        }
      },
    });
  },
};
export default dialog;
